package com.lovo.Util;

public class Huobi {
    public static void main(String[] args) {
        System.out.println(num(99799.67));
    }
    public static String num(double money){
        String str="";
        Double a=money;
        String[]str1=a.toString().split("");
        int count=0;
        for (int i=str1.length-5;i>=0;i--){
            count++;
            if (count%3==0){
                str1[i]+=",";
            }
        }
        for (String items:str1){
            str+=items;
        }
        return str;
    }
}
